﻿using CommunityToolkit.Mvvm.ComponentModel;
using HslCommunication.Profinet.Siemens;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
/*
 我把这个设为单例了,设置了get,set所以值真正改变了,但是,没有设置通知导致,在一个地方修改但是另一个地方不知道
 */
namespace ProductionLine.Modules.ShareLib.Models {
    public partial class PlcParam: ObservableObject {
        /// <summary>
        /// PlcIp 地址
        /// </summary>
        /// 
        [ObservableProperty]
        private string _plcIp;
        /// <summary>
        /// Plc 端口
        /// </summary>
        /// 
        [ObservableProperty]
        private int _plcPort;
        /// <summary>
        /// Plc 类型
        /// </summary>
        /// 
        [ObservableProperty]
        private SiemensPLCS _plcType;
        /// <summary>
        /// Plc 机架号
        /// </summary>
        /// 
        [ObservableProperty]
        private byte _plcRack;
        /// <summary>
        /// Plc 插槽号
        /// </summary>
        /// 
        [ObservableProperty]
        private byte _plcSlot;
        /// <summary>
        /// Plc 连接超时时间
        /// </summary>
        /// 
        [ObservableProperty]
        private int _plcConnectTimeOut;
        /// <summary>
        /// Plc 断线重连时间
        /// </summary>
        /// 
        [ObservableProperty]
        private int _plcReConnectTime;
        /// <summary>
        /// Plc 循环间隔
        /// </summary>
        /// 
        [ObservableProperty]
        private int _plcCycleInterval;
        /// <summary>
        /// Plc 是否采集
        /// </summary>
        /// 
        [ObservableProperty]
        private bool _autoCollect;
        /// <summary>
        /// Plc 模拟数据
        /// </summary>
        /// 
        [ObservableProperty]
        private bool _autoMock;



    }
}
